﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 

        mc:Ignorable="d" 
        x:Class="LASDesktop.ModuloBancos.Bancos"
        Title="Bancos" Height="700" Width="900" Background="#FFBCBCBC" WindowStartupLocation="CenterScreen" Foreground="#FFBCBCBC" Closing="CloseParent">
    <Window.Resources>
        <Style TargetType="{x:Type Button}">
			<Setter Property="SnapsToDevicePixels" Value="true"/>
			<Setter Property="OverridesDefaultStyle" Value="true"/>
			<Setter Property="MinHeight" Value="23"/>
			<Setter Property="MinWidth" Value="75"/>
			<Setter Property="Template">
			  <Setter.Value>
			    <ControlTemplate TargetType="{x:Type Button}">
			      <Border 
			        x:Name="Border"  
			        CornerRadius="2" 
			        BorderThickness="1"
			        Background="#FF0384C5"
			        BorderBrush="#FF0384C5">
			        <ContentPresenter 
			          Margin="2"
			          HorizontalAlignment="Center"
			          VerticalAlignment="Center"
			          RecognizesAccessKey="True"/>
			      </Border>
			      <ControlTemplate.Triggers>
			        <Trigger Property="IsKeyboardFocused" Value="true">
			          <Setter TargetName="Border" Property="BorderBrush" Value="#FF0384C5" />
			        </Trigger>
			        <Trigger Property="IsDefaulted" Value="true">
			          <Setter TargetName="Border" Property="BorderBrush" Value="#FF0384C5" />
			        </Trigger>
			        <Trigger Property="IsMouseOver" Value="true">
			          <Setter TargetName="Border" Property="Background" Value="#FF0384C5" />
			        </Trigger>
			        <Trigger Property="IsPressed" Value="true">
			          <Setter TargetName="Border" Property="Background" Value="#FF0384C5" />
			          <Setter TargetName="Border" Property="BorderBrush" Value="#FF0384C5" />
			        </Trigger>
			        <Trigger Property="IsEnabled" Value="false">
			          <Setter TargetName="Border" Property="Background" Value="#FF0384C5" />
			          <Setter TargetName="Border" Property="BorderBrush" Value="#FF0384C5" />
			          <Setter Property="Foreground" Value="#888888"/>
			        </Trigger>
			      </ControlTemplate.Triggers>
			    </ControlTemplate>
			  </Setter.Value>
			</Setter>
			</Style>
		<Style TargetType="{x:Type TabItem}">
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type TabItem}">
    				<Grid>
    					<Border x:Name="Border">
    						<ContentPresenter x:Name="ContentSite" VerticalAlignment="Center" HorizontalAlignment="Center"  ContentSource="Header" Margin="12,2,12,2"/>
    					</Border>
    				</Grid>
    				<ControlTemplate.Triggers>
    					<Trigger Property="IsSelected" Value="True">
    						<Setter TargetName="Border" Property="Background" Value="#a7a5a5" />
    						<Setter TargetName="Border" Property="BorderBrush" Value="#a7a5a5" />
							
    					</Trigger>
    					<Trigger Property="IsSelected" Value="False">
    						<Setter TargetName="Border" Property="Background" Value="#FF515454" />
    						<Setter TargetName="Border" Property="BorderBrush" Value="#FF515454" />
    					</Trigger>
    					<Trigger Property="IsSelected" Value="False">
    						<Setter Property="Foreground" Value="White"/>
    					</Trigger>
    				</ControlTemplate.Triggers>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>

    

    </Window.Resources>
	
	<Grid>
        <Rectangle Height="100" HorizontalAlignment="Left"  x:Name="rectangle1"  VerticalAlignment="Top" Width="906" Fill="#FF515454" Stroke="#FF515454" SnapsToDevicePixels="False" Margin="0,-1,0,0" />
        <Image Height="100" HorizontalAlignment="Left" Margin="0,-2,0,0" x:Name="image1" Stretch="Uniform" VerticalAlignment="Top" Width="250" Source="..\Graphics\Banner.png"/>
        <Label Content="Bancos" Height="43" HorizontalAlignment="Left" Margin="41,107.5,0,0" x:Name="label1" VerticalAlignment="Top" FontFamily="../Fonts/GeosansLight.ttf#GeosansLight" Width="261" FontSize="30" Foreground="#FF0384C5" />
        <TabControl Margin="41,154.5,41,25" Background="#FFA7A5A5" BorderBrush="{x:Null}">
        	<TabItem Header="Pagos recibidos" FontSize="18.667" FontFamily="/LASDesktop;component/Fonts/#GeosansLight"  d:LayoutOverrides="HorizontalAlignment">
<Grid>
        			<Grid.ColumnDefinitions>
        				<ColumnDefinition Width="Auto" MinWidth="54.648"/>
        				<ColumnDefinition Width="0"/>
        				<ColumnDefinition/>
        			</Grid.ColumnDefinitions>
        			<DataGrid x:Name="DocumentosClientesGrid"  AutoGenerateColumns="False" Height="224.86" HorizontalAlignment="Left" Margin="17,129.64,0,0" VerticalAlignment="Top" Width="758" FontFamily="Calibri" FontSize="15" BorderBrush="{x:Null}" Background="#FFDEDEDE" HorizontalGridLinesBrush="#FFBCBCBC" VerticalGridLinesBrush="#FFBCBCBC" RowBackground="#FFDEDEDE" CanUserAddRows="False" SelectionMode="Extended" Grid.ColumnSpan="3">
                   
        				<DataGrid.Columns>



                            <DataGridTemplateColumn Width="70" Header="Código" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="100" Height="40">
                                            <TextBlock Text="{Binding IdUnicoDocumento}" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                            <DataGridTemplateColumn Width="110" Header="Tipo Documento" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="110"  Height="40">

                                            <TextBlock Text="{Binding TipoDocumento}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" ></TextBlock>

                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                            <DataGridTemplateColumn Width="140" Header="Fecha Contabilizacion" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="80" Height="40">
                                            <TextBlock Text="{Binding FechaContabilizacion}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />
                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                            <DataGridTemplateColumn Width="140" Header="Fecha Entrega" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="80"  Height="40">
                                            <TextBlock Text="{Binding FechaEntrega}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />
                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                            <DataGridTemplateColumn Width="104" Header="Total Antes Impuesto" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="104"  Height="40">

                                            <TextBlock Text="{Binding TotalAntesImpuesto}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />

                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                            <DataGridTemplateColumn Width="90" Header="Impuesto"  IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="90"  Height="40">

                                            <TextBlock Text="{Binding Impuesto}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />

                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                            <DataGridTemplateColumn Width="100" Header="Total" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="100"  Height="40">

                                            <TextBlock Text="{Binding Total}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />

                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                        </DataGrid.Columns>
        			</DataGrid>
        			<Path Data="M421,60 L421,401.22" Fill="Black" Stretch="Fill" Stroke="Black" Width="0.5" HorizontalAlignment="Left" Margin="333.648,24,0,0" Height="88.14" VerticalAlignment="Top" Grid.Column="2"/>
        			<Label Content="Por favor seleccione un cliente." HorizontalAlignment="Left" Height="34" Margin="66.648,29,0,0" VerticalAlignment="Top" Width="254" Grid.Column="2"/>
        			<ComboBox x:Name="InputClientes" Margin="142.648,65.86,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="146" FontFamily="Segoe UI" SelectionChanged="ClienteComboChanged" Grid.Column="2"/>
        			<Label x:Name="TextNombreCliente" Content="" Height="34" Margin="349.648,63,165,0" VerticalAlignment="Top" Grid.Column="2"/>
        			<Button Background="#FF0384C5" BorderBrush="{x:Null}" Clip="M5.5,27.5 C5.5,16.454305 14.454305,7.5 25.5,7.5 L200,7.5 C211.04569,7.5 220,16.454305 220,27.5 L220,30.72 C220,41.765695 211.04569,50.72 200,50.72 L25.5,50.72 C14.454305,50.72 5.5,41.765695 5.5,30.72 z" Content="Cancelar documentos" FontFamily="/LASDesktop;component/Fonts/#GeosansLight" FontSize="21.333" Foreground="White" Height="57.22" x:Name="SubmitButton" VerticalAlignment="Bottom" Width="226.5" Click="CancelarDocumentosClientes" Cursor="Hand" HorizontalAlignment="Right" Margin="0,0,44,19" d:LayoutOverrides="Width" Grid.Column="2" />
        			<Label Content="Nombre del cliente:" Height="34" Margin="349.648,29,124,0" VerticalAlignment="Top" FontWeight="Bold" Grid.Column="2"/>
        			
        		</Grid>              
            </TabItem>
        	<TabItem Header="Pagos efectuados" FontSize="18.667" FontFamily="/LASDesktop;component/Fonts/#GeosansLight"  d:LayoutOverrides="HorizontalAlignment">
        		<Grid>
        			<Grid.ColumnDefinitions>
        				<ColumnDefinition Width="0.069*"/>
        				<ColumnDefinition Width="0.2*"/>
        				<ColumnDefinition Width="0.731*"/>
        			</Grid.ColumnDefinitions>
        			<DataGrid x:Name="DocumentosProveedoresGrid"  AutoGenerateColumns="False" Height="224.86" HorizontalAlignment="Left" Margin="17,129.64,0,0" VerticalAlignment="Top" Width="758" FontFamily="Calibri" FontSize="15" BorderBrush="{x:Null}" Background="#FFDEDEDE" HorizontalGridLinesBrush="#FFBCBCBC" VerticalGridLinesBrush="#FFBCBCBC" RowBackground="#FFDEDEDE" CanUserAddRows="False" SelectionMode="Extended" Grid.ColumnSpan="3">
                   
        				<DataGrid.Columns>



                            <DataGridTemplateColumn Width="70" Header="Código" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="100" Height="40">
                                            <TextBlock Text="{Binding IdUnicoDocumento}" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                            <DataGridTemplateColumn Width="110" Header="Tipo Documento" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="110"  Height="40">

                                            <TextBlock Text="{Binding TipoDocumento}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" ></TextBlock>

                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                            <DataGridTemplateColumn Width="140" Header="Fecha Contabilizacion" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="80" Height="40">
                                            <TextBlock Text="{Binding FechaContabilizacion}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />
                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                            <DataGridTemplateColumn Width="140" Header="Fecha Entrega" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="80"  Height="40">
                                            <TextBlock Text="{Binding FechaEntrega}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />
                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                            <DataGridTemplateColumn Width="104" Header="Total Antes Impuesto" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="104"  Height="40">

                                            <TextBlock Text="{Binding TotalAntesImpuesto}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />

                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                            <DataGridTemplateColumn Width="90" Header="Impuesto"  IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="90"  Height="40">

                                            <TextBlock Text="{Binding Impuesto}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />

                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                            <DataGridTemplateColumn Width="100" Header="Total" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid Width="100"  Height="40">

                                            <TextBlock Text="{Binding Total}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />

                                        </Grid>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>

                        </DataGrid.Columns>
        			</DataGrid>
        			<Path Data="M421,60 L421,401.22" Fill="Black" Stretch="Fill" Stroke="Black" Width="0.5" HorizontalAlignment="Left" Margin="175.648,24,0,0" Height="88.14" VerticalAlignment="Top" Grid.Column="2"/>
        			<Label Content="Por favor seleccione un proveedor." HorizontalAlignment="Left" Height="34" Margin="-122.352,29,0,0" VerticalAlignment="Top" Width="262" Grid.Column="2"/>
        			<ComboBox x:Name="InputProveedores" Margin="-15.352,65.86,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="146" FontFamily="Segoe UI" SelectionChanged="ProveedorComboChanged" Grid.Column="2"/>
        			<Label x:Name="TextNombreProveedor" Content="" Height="34" Margin="191.648,63,165,0" VerticalAlignment="Top" Grid.Column="2"/>
        			<Button Background="#FF0384C5" BorderBrush="{x:Null}" Clip="M5.5,27.5 C5.5,16.454305 14.454305,7.5 25.5,7.5 L200,7.5 C211.04569,7.5 220,16.454305 220,27.5 L220,30.72 C220,41.765695 211.04569,50.72 200,50.72 L25.5,50.72 C14.454305,50.72 5.5,41.765695 5.5,30.72 z" Content="Cancelar documentos" FontFamily="/LASDesktop;component/Fonts/#GeosansLight" FontSize="21.333" Foreground="White" Height="57.22" x:Name="SubmitButton_Copy" VerticalAlignment="Bottom" Width="226.5" Click="CancelarDocumentosProveedores" Cursor="Hand" HorizontalAlignment="Right" Margin="0,0,44,19" d:LayoutOverrides="Width" Grid.Column="2" />
        			<Label Content="Nombre del proveedor:" Height="34" Margin="191.648,29,124,0" VerticalAlignment="Top" FontWeight="Bold" Grid.Column="2"/>
        			
        		</Grid>
        	</TabItem>
			
			
<TabItem Header="Detalle de Transferencias" FontSize="18.667" FontFamily="/LASDesktop;component/Fonts/#GeosansLight"  d:LayoutOverrides="HorizontalAlignment">
        		<Grid>
        			<Grid.ColumnDefinitions>
        				<ColumnDefinition Width="0.069*"/>
        				<ColumnDefinition Width="0.2*"/>
        				<ColumnDefinition Width="0.731*"/>
        			</Grid.ColumnDefinitions>
        			<DataGrid x:Name="TransferenciasGrid"  AutoGenerateColumns="False" Height="409.86" HorizontalAlignment="Left" Margin="18,13.64,0,0" VerticalAlignment="Top" Width="758" FontFamily="Calibri" FontSize="15" BorderBrush="{x:Null}" Background="#FFDEDEDE" HorizontalGridLinesBrush="#FFBCBCBC" VerticalGridLinesBrush="#FFBCBCBC" RowBackground="#FFDEDEDE" CanUserAddRows="False" Grid.ColumnSpan="3">
                   
        				<DataGrid.Columns>
         
			
        					<DataGridTemplateColumn Width="75" Header="Número" IsReadOnly="True">
        						<DataGridTemplateColumn.CellTemplate>
        							<DataTemplate>
        								<Grid Width="155" Height="40">
        									<TextBlock Text="{Binding Numero}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
        								</Grid>
        							</DataTemplate>
        						</DataGridTemplateColumn.CellTemplate>
        					</DataGridTemplateColumn>

							<DataGridTemplateColumn Width="100" Header="Fecha" IsReadOnly="True">
        						<DataGridTemplateColumn.CellTemplate>
        							<DataTemplate>
        								<Grid Width="100" Height="40">
        									<TextBlock Text="{Binding Fecha}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />
        								</Grid>
        							</DataTemplate>
        						</DataGridTemplateColumn.CellTemplate>
        					</DataGridTemplateColumn>
							
        					<DataGridTemplateColumn Width="110" Header="Tipo" IsReadOnly="True">
        						<DataGridTemplateColumn.CellTemplate>
        							<DataTemplate>
        								<Grid Width="110" Height="40">
        									<TextBlock Text="{Binding TipoTransferencia}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />
										</Grid>
        							</DataTemplate>
        						</DataGridTemplateColumn.CellTemplate>
        					</DataGridTemplateColumn>
														
							<DataGridTemplateColumn Width="180" Header="Cuenta Afectada" IsReadOnly="True">
        						<DataGridTemplateColumn.CellTemplate>
        							<DataTemplate>
        								<Grid Width="180" Height="40">
        									
        									<TextBlock Text="{Binding Cuenta}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />
											
										</Grid>
        							</DataTemplate>
        						</DataGridTemplateColumn.CellTemplate>
        					</DataGridTemplateColumn>
							
        					<DataGridTemplateColumn Width="180" Header="Socio" IsReadOnly="True">
        						<DataGridTemplateColumn.CellTemplate>
        							<DataTemplate>
        								<Grid Width="180" Height="40">
        									<TextBlock Text="{Binding NombreSocio}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />
										</Grid>
        							</DataTemplate>
        						</DataGridTemplateColumn.CellTemplate>
        					</DataGridTemplateColumn>
							
        					<DataGridTemplateColumn Width="105" Header="Monto" IsReadOnly="True">
        						<DataGridTemplateColumn.CellTemplate>
        							<DataTemplate>
        								<Grid Width="105" Height="40">
        									
        									<TextBlock Text="{Binding Monto}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />
											
										</Grid>
        							</DataTemplate>
        						</DataGridTemplateColumn.CellTemplate>
        					</DataGridTemplateColumn>
							
							




        				</DataGrid.Columns>
        			</DataGrid>
        			
        			
        		</Grid>
        	</TabItem>
			
			
        </TabControl>
        <Rectangle x:Name="Overlay" Fill="#AC161616" Margin="0,-2,0,0" Visibility="Hidden"/>
        <Grid Height="100" VerticalAlignment="Top" Margin="317,-2,8,0">
            <Label Content="Inventario" Margin="0,23.5,0,27" x:Name="label1_Copy" FontFamily="../Fonts/GeosansLight.ttf#GeosansLight" FontSize="37.333" Foreground="#FFDEDEDE" HorizontalAlignment="Left" Width="159" Cursor="Hand" MouseDown="ChangeWindow" />
            <Label Content="Socios" Margin="0,23.5,154,27" x:Name="label1_Copy1" FontFamily="../Fonts/GeosansLight.ttf#GeosansLight" FontSize="37.333" Foreground="#FFDEDEDE" HorizontalAlignment="Right" Width="114" Cursor="Hand" MouseDown="ChangeWindow" />
            <Label Content="Compras" Margin="282,23.5,268,27" x:Name="label1_Copy2" FontFamily="../Fonts/GeosansLight.ttf#GeosansLight" FontSize="37.333" Foreground="#FFDEDEDE" Cursor="Hand" MouseDown="ChangeWindow" />
            <Label Content="Ventas" Margin="163,23.5,0,27" x:Name="label1_Copy3" FontFamily="../Fonts/GeosansLight.ttf#GeosansLight" FontSize="37.333" Foreground="#FFDEDEDE" HorizontalAlignment="Left" Width="115" Cursor="Hand" MouseDown="ChangeWindow" />
            <Label Content="Bancos" Margin="0,23.5,28,27" x:Name="label1_Copy4" FontFamily="../Fonts/GeosansLight.ttf#GeosansLight" FontSize="37.333" Foreground="#FFDEDEDE" HorizontalAlignment="Right" Width="122" Cursor="Hand" MouseDown="ChangeWindow" />
        </Grid>
    </Grid>
</Window>
